package com.xyhy.core.base;

public class ToolConstant {
  public static class PATTERN {
    public static final String G8 = "yyyy-MM-dd'T'HH:mm:ss'+08:00'";

    public static final String UTC = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";

    public static final String COMMON = "yyyy-MM-dd HH:mm:ss";

    public static final String YYYYMMDD = "yyyyMMdd";

    public static final String DATE = "yyyy-MM-dd";
  }

  public static class URL {
    public static final String ADD = "/add";
    public static final String SAVE = "/save";
    public static final String DELETE = "/delete";
    public static final String FORCE_DELETE = "/forceDelete";
    public static final String UPDATE = "/update";
    public static final String UPLOAD = "/upload";
    public static final String DOWNLOAD = "/download";
    public static final String QUERY = "/query";
    public static final String GET_ALL = "/getAll";
    public static final String GET_OPTIONS = "/getOptions";
    public static final String GET_OPTIONS_ALL = "/getOptionsAll";
    public static final String GET_DETAIL = "/getDetail";
    public static final String PUBLISH = "/publish";
    public static final String PRINT_PREVIEW = "/printPreview";
    public static final String SUBMIT = "/submit";
    public static final String GENERATE_UI = "/generateUi";
  }

  public static class JPA {
    public static final String COL_VARCHAR_UTF8MB4 = "varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci";
    public static final String COL_TEXT_UTF8MB4 = "text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci";
  }

  public static class TYPE {
    public static final String LIST_STRING = "java.util.List<String>";
    public static final String LIST_OBJECT = "java.util.List<Object>";

  }

  public static class AUTH {
    public static final String ALL_PERMISSION = "*:*:*";

    public static final String ROLE_ADMIN = "ROLE_ADMIN";

    public static final String PERMIT_ALL = "permitAll";

    public static final String TOKEN_PREFIX = "Bearer ";

  }

  public static class COLUMN {
    public static final String ID = "id";
  }

  public static class TOKEN_KEY {
    public static final String USER_ID = "userId";

    public static final String UUID = "uuid";

    public static final String USERNAME = "username";

  }

  public static class OPERATOR {
    public static final String GT = " > ";
    public static final String GE = " >= ";
    public static final String LT = " < ";
    public static final String LE = " <= ";
    public static final String LIKE = " LIKE ";
    public static final String NOT_LIKE = " NOT LIKE ";
    public static final String EQUALS = " = ";
    public static final String NOT_EQUALS = " != ";
    public static final String IS_NULL = " IS NULL ";
    public static final String IS_NOT_NULL = " IS NOT NULL ";
    public static final String IN = " IN ";
    public static final String NOT_IN = " NOT IN ";
    public static final String BETWEEN = " BETWEEN ";
    public static final String NOT_BETWEEN = " NOT BETWEEN ";
  }

  public static class TAG_TYPE {
    public static final String PRIMARY = "primary";
    public static final String SUCCESS = "success";
    public static final String INFO = "info";
    public static final String WARNING = "warning";
    public static final String DANGER = "danger";
  }
}
